<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>充值记录管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function() {

        });
        function page(n,s){
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/account/baseAccountAmountLogs/">信息列表</a></li>
    <!--<shiro:hasPermission name="account:baseAccountAmountLogs:edit"><li><a href="${ctx}/account/baseAccountAmountLogs/form">充值记录添加</a></li></shiro:hasPermission>-->
</ul>
<form:form id="searchForm" modelAttribute="baseAccountAmountLogs" action="${ctx}/account/baseAccountAmountLogs/payList" method="post" class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <ul class="ul-form">
        <li><label>用户：</label>
            <sys:treeselect id="user" name="user.id" value="${baseAccountAmountLogs.user.id}" labelName="user.name" labelValue="${baseAccountAmountLogs.user.name}"
                            title="用户" url="/sys/office/treeData?type=3" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
        </li>
        <li><label>时间：</label>
            <input name="createTimeQ" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
                   value="<fmt:formatDate value="${baseAccountAmountLogs.createTimeQ}" pattern="yyyy-MM-dd HH:mm:ss"/>"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>-
            <input name="createTimeZ" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
                   value="<fmt:formatDate value="${baseAccountAmountLogs.createTimeZ}" pattern="yyyy-MM-dd HH:mm:ss"/>"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>机构</th>
        <th>类型</th>
        <th>操作时间</th>
        <th>变动前额度</th>
        <th>变动额度</th>
        <th>用户ID</th>
        <th>登录账号</th>
        <th>姓名</th>
        <th>备注</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="item">
        <tr>
            <td>${item.company.name}</td>
            <td>
                    ${fns:getDictLabel(item.changeType, 'change_type', ' ')}
            </td>
            <td>
                <fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
            </td>
            <td>
                    ${item.accAmount}
            </td>
            <td>
                    ${item.amount}
            </td>
            <td>${item.userid}</td>
            <td>${item.user.loginName}</td>
            <td>${item.user.name}</td>
            <td>${item.remark}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>
